export function getSetting(auth, onSuccess,onFail){
    mpvue.getSetting({
      success(res){
        console.log(res);
        if(res.authSetting[`scope.${auth}`]){
          onSuccess(res)
        }else{
          onFail(res)
        }
        
      },
      fail(res){
          console.log(res);
      }
    })
  }